﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Torch_IServices
{
    /// <summary>
    /// 用户/账号
    /// </summary>
    public interface IUsersService
    {
        Task<int> AddUserAsync(string account,string password,int roleId);
        Task<int> EditUserAsync(int id, string password);
        Task<int> DeleteUserAsync(int id);
        Task<List<UsersDto>> QueryUserAllAsync();
        //Task<UsersDto> QueryUserByIdAsync(int id);
        Task<List<UsersDto>> QueryUserByAccountAsync(string account);
        Task<UsersDto> LoginAsync(string account,string password);
    }
}
